module.exports = {
    entry: {
        idx: './src/idx.js'
    },
    output: {
        filename: '[name].[chunkHash].js',
        path: require('path').resolve(__dirname, './dist')
    },
    module: {
        rules:[{
            test: /\.js$/,
            use: [{
                loader: 'babel-loader'
            }]
        }]
    }
}
